package com.cwt.service.vo;

import com.cwt.common.annotation.PhoneNumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author chenwt
 * @version V1.0
 * @describe 【用户注册】
 * @date 2023年07月21日 08:58:54
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户注册信息")
public class Register implements Serializable {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", dataType = "String", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", dataType = "String")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    @ApiModelProperty(value = "确认密码", dataType = "String")
    private String confirmPwd;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", dataType = "String")
    private String name;

}
